home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / rqs64.z / rqs64
Text File  |  1998-10-30  |  11KB  |  265 lines

  1.  
  2.  
  3.  
  4. RRRRQQQQSSSS66664444((((1111))))                                                              RRRRQQQQSSSS66664444((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      rqs64 - fixes up 64-bit executable or shared object to be QUICKSTARTable
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      rrrrqqqqssss66664444 [-_t timestamp_value_in_hex] [-_l text_address_in_hex] [-_c
  13.      so_locations_file] [-_u so_locations_file] [-_f] [-_L] [-_L_d_i_r] [-_r
  14.      root_path] [-_c_h_r_o_o_t root_path] [-_l_o_g <file>] [-_r_l_d__a_d_d_r <address>] [-
  15.      _r_l_d__a_d_d_r__o_n_l_y] [-_r_l_d__u_n_r_e_s_o_l_v_e__c_h_e_c_k__o_n_l_y] [-_r_l_d__f_o_r_c_e__n_o_q_u_i_c_k_s_t_a_r_t__o_n_l_y]
  16.      _o_b_j_e_c_t
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      _r_q_s_6_4 takes an object, either an executable or a shared object, and using
  20.      its liblist will then redo all the pre-relocations. For shared object
  21.      only, if -_l_o_a_d__a_d_d_r_e_s_s is specified, then the specified address will be
  22.      used as the lowest virtual address for that shared object, otherwise
  23.      options -_c_h_e_c_k__r_e_g_i_s_t_r_y and/or -_u_p_d_a_t_e__r_e_g_i_s_t_r_y will be used to figure
  24.      out possible QUICKSTART addresses for that shared object, just like _l_d.
  25.  
  26.      _r_q_s_6_4 will create a new version of the object and save it back in place,
  27.      overwriting the previous version, so user may want to save a copy of the
  28.      object somewhere before requickstarting it.
  29.  
  30.      For an object to be requickstartable, the bit _R_H_F__R_E_Q_U_I_C_K_S_T_A_R_T must be
  31.      set in the DT_MIPS_FLAGS field of its .dynamic section.  This bit is
  32.      normally set by _l_d.  After an object has been requickstarted, the bit
  33.      _R_H_F__R_E_Q_U_I_C_K_S_T_A_R_T_E_D will be set in the DT_MIPS_FLAGS field of its .dynamic
  34.      section.
  35.  
  36.      With the ----mmmm option _r_q_s will move an object to a requested address even if
  37.      the result will not quickstart.
  38.  
  39.      ----ffff   Requickstart  _o_b_j_e_c_t even if _R_H_F__R_E_Q_U_I_C_K_S_T_A_R_T is not set in _o_b_j_e_c_t.
  40.  
  41.      ----ffffoooorrrrcccceeee____rrrreeeeqqqquuuuiiiicccckkkkssssttttaaaarrrrtttt
  42.           is an alternate spelling of the ----ffff option.
  43.  
  44.      ----tttt timestamp_value_in_hex
  45.           specifies a timestamp value in hex to replace the one in the
  46.           DT_MIPS_TIME_STAMP field of the .dynamic section, applicable to
  47.           shared object only.
  48.  
  49.      ----ttttiiiimmmmeeeessssttttaaaammmmpppp timestamp_value_in_hex
  50.           is an alternate spelling of the ----tttt option.
  51.  
  52.      ----llll text_address_in_hex
  53.           specifies the lowest virtual address for the shared object being
  54.           rqs'ed, when specified, options -check_registry and -update_registry
  55.           will be ignored.
  56.  
  57.      ----llllooooaaaadddd____aaaaddddddddrrrreeeessssssss text_address_in_hex
  58.           is an alternate spelling of the ----llll option.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RRRRQQQQSSSS66664444((((1111))))                                                              RRRRQQQQSSSS66664444((((1111))))
  71.  
  72.  
  73.  
  74.      ----cccc so_locations_file
  75.           Check the location of this shared object's segments and make sure
  76.           they stay out of the way of others in the so_locations_file.  A
  77.           single registry file, either with ----cccc or ----uuuu is allowed.  Applicable
  78.           to shared object only.
  79.  
  80.      ----cccchhhheeeecccckkkk____rrrreeeeggggiiiissssttttrrrryyyy so_locations_file
  81.           is an alternate spelling of the ----cccc option.
  82.  
  83.      ----uuuu so_locations_file
  84.           Register the location of this shared object's segments and make sure
  85.           they stay out of the way of others in the so_locations_file.
  86.           so_locations_file is updated if it is writable.  A single registry
  87.           file, either with ----cccc or ----uuuu is allowed.  Applicable to shared object
  88.           only.
  89.  
  90.      ----uuuuppppddddaaaatttteeee____rrrreeeeggggiiiissssttttrrrryyyy so_locations_file
  91.           is an alternate spelling of the ----uuuu option.
  92.  
  93.      ----LLLL   Change the algorithm of searching for libraries to never look in the
  94.           default directories, namely /usr/lib:/lib.  This option has the same
  95.           semantics as -L in ld.
  96.  
  97.      ----LLLLddddiiiirrrr
  98.           Change the algorithm of searching for libraries to look in _d_i_r
  99.           before looking in the default directories.  This option has the same
  100.           semantics as -Ldir in ld.  The environment variable
  101.           _L_D__L_I_B_R_A_R_Y_6_4__P_A_T_H can also be used for this purpose.
  102.  
  103.      ----mmmm   Move the dso even if address overlaps are detected (without this
  104.           option address overlaps cause _r_q_s to exit without doing anything).
  105.           If an address overlap is detected the RHF_QUICKSTART flag is reset
  106.           (to 0) in the dynamic section.  Generally useful only if the ----llll
  107.           option is also on the command line.
  108.  
  109.      ----vvvv   Makes rqs more verbose.  Generally intended for debugging, but is
  110.           useful if one wants to know if the ----mmmm option detected any address
  111.           overlaps, as this enables a message about such overlaps.
  112.  
  113.      ----rrrr root_path
  114.           Change the path of the default directories that rqs uses for
  115.           searching libraries by appending _r_o_o_t__p_a_t_h to the front of the
  116.           default path, just like that in _RLD_ROOT.  It can also be a
  117.           colon(:) separated list.  In fact, the environment variable
  118.           __R_L_D__R_O_O_T can also be used for this purpose.  (For a new 32bit ABI
  119.           object, use __R_L_D_N_3_2__R_O_O_T instead of __R_L_D__R_O_O_T)..TP ----rrrrooooooootttt root_path
  120.           is an alternate spelling of the ----rrrr option.
  121.  
  122.      ----cccchhhhrrrrooooooootttt root_path
  123.           This causes the named directory _r_o_o_t__p_a_t_h to become the root
  124.           directory, the starting point for path searches for path names
  125.           beginning with /.
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. RRRRQQQQSSSS66664444((((1111))))                                                              RRRRQQQQSSSS66664444((((1111))))
  137.  
  138.  
  139.  
  140.      ----lllloooogggg logfile
  141.           Pipes all error messages to _l_o_g_f_i_l_e instead of standard output.
  142.  
  143.      ----rrrrlllldddd____aaaaddddddddrrrr address
  144.           Sets the dynamic section DT_MIPS_RLD_TEXT_RESOLVE_ADDR to _a_d_d_r_e_s_s.
  145.  
  146.      ----rrrrlllldddd____aaaaddddddddrrrr____oooonnnnllllyyyy
  147.           Restricts the changes to only be to the dynamic section
  148.           DT_MIPS_RLD_TEXT_RESOLVE_ADDR (only effective if the -_r_l_d__a_d_d_r
  149.           option is also on the command line).
  150.  
  151.      ----rrrrlllldddd____uuuunnnnrrrreeeessssoooollllvvvveeee____cccchhhheeeecccckkkk____oooonnnnllllyyyy
  152.           Restricts the changes to be to the dynamic section's
  153.            DT_MIPS_FLAGS to set or unset RHF_NO_UNRES_UNDEF depending on if
  154.           there were-not or were any undefined variables.
  155.  
  156.      ----rrrrlllldddd____ffffoooorrrrcccceeee____nnnnooooqqqquuuuiiiicccckkkkssssttttaaaarrrrtttt____oooonnnnllllyyyy
  157.           Restricts the changes to be to the dynamic section's DT_MIPS_FLAGS
  158.           to be to reset the RHF_QUICKSTART flag.
  159.  
  160.      The following options must be put into the environment variable ____RRRRQQQQSSSS____AAAARRRRGGGGSSSS
  161.      to be understood: they cannot be on the command line.
  162.  
  163.      ----ddddeeeebbbbuuuugggg mmmmaaaapppp
  164.           Used for debugging _r_q_s.  Prints information about the mapping
  165.           (address) of the object.
  166.  
  167.      ----ddddeeeebbbbuuuugggg ssssyyyymmmmbbbboooollll
  168.           Used for debugging _r_q_s.  Prints information about the symbol
  169.           searches and symbol finding in the object (in symbol relocation).
  170.  
  171.      ----ddddeeeebbbbuuuugggg MMMMAAAALLLLLLLLOOOOCCCC
  172.           Used for debugging _r_q_s.  Prints a trace of some of the
  173.           malloc/realloc calls.
  174.  
  175.      ----ddddeeeebbbbuuuugggg hhhhaaaasssshhhh
  176.           Used for debugging _r_q_s.  Prints a trace of the hashing function used
  177.           searching a hash table for a symbol.
  178.  
  179. FFFFIIIILLLLEEEESSSS
  180.      /usr/etc/rqs64
  181.      /usr/lib64/so_locations
  182.  
  183. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  184.      ld(1), rld(1), rqsall(1), and rqs(1).
  185.  
  186. NNNNOOOOTTTTEEEESSSS
  187.      To move a set of DSOs to a common base address a command such as in this
  188.      example
  189.          #!/bin/sh
  190.          for in dso1.so dso2.so dso3.so
  191.          do
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. RRRRQQQQSSSS66664444((((1111))))                                                              RRRRQQQQSSSS66664444((((1111))))
  203.  
  204.  
  205.  
  206.             rqs -l 0x300000 -m -f  $i
  207.          done
  208.      is useful.  One might want to do this if a set of DSOs used by an
  209.      application takes too much virtual address space to lay out sequentially
  210.      and the set is too large to try to provide an _s_o__l_o_c_a_t_i_o_n_s at link time.
  211.  
  212.      Some options have long and short spellings.  For example, ----ffff and
  213.      ----ffffoooorrrrcccceeee____rrrreeeeqqqquuuuiiiicccckkkkssssttttaaaarrrrtttt do the same thing.  The short form is easier to
  214.      remember and spell.  Because the long form is used in existing scripts
  215.      and programs, both forms will be supported.
  216.  
  217.      Where any option specifies that a value supplied on the command line is
  218.      to be in hexadecimal, the value is interpreted as hexadecimal digits
  219.      whether or not a leading "0x" is part of the option value.
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.